package cn.gov.pbc.tims.util;

import org.springframework.stereotype.Component;

import com.fasterxml.jackson.annotation.JsonInclude;

@Component("grid_data")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageData {
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public Object getRows() {
		return rows;
	}
	public void setRows(Object rows) {
		this.rows = rows;
	}
	public Integer total;
	public Object rows;
	public void clear(){
		total=0;rows=null;
	}
	public void setValue(Integer total,Object data){
		this.total = total;
		this.rows = data;
	}
}
